import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import server from 'server';
import sysServer from 'server/system';


import ele from 'element-ui';
import * as echarts from 'echarts';


Vue.use(ele);
import kkui from 'kkui/kkui';
import 'kkui/kkui.css';
Vue.prototype.$kkui = kkui;


Vue.config.productionTip = false;
Vue.prototype.$echarts = echarts;

Vue.prototype.$server = server;
Vue.prototype.$sysServer = sysServer;

if(window.screen.width<1920){
  kkui.alert({
    icon:-1,
    cont:'本平台最佳显示分辨率为：1920*1080'
  })
}

// sysServer.ServerStartTimer();
//
// window.onbeforeunload = function(e) {
//   sysServer.ServerEndTimer();
// };


new Vue({
  router,
  store,
  render: function (h) {
    return h(App)
  }
}).$mount('#app');
